package routers

import (
	"github.com/astaxie/beego"
	"sdrms_test/controllers"
)

func init() {


	beego.Router("/home/index", &controllers.HomeController{}, "*:Index")
	beego.Router("/home/login", &controllers.HomeController{}, "*:Login")
	beego.Router("/home/datareset", &controllers.HomeController{},"Post:DataReset")
	beego.Router("/home/dologin", &controllers.HomeController{},"Post:DoLogin")
	beego.Router("/home/logout", &controllers.HomeController{},"Get:Logout")

	beego.Router("/usercenter/Profile", &controllers.UserCenterController{},"Get:Profile")
	beego.Router("/usercenter/basicinfosave", &controllers.UserCenterController{},"Post:BasicInfoSave")
	beego.Router("/usercenter/passwordsave", &controllers.UserCenterController{},"Post:PasswordSave")
	beego.Router("/usercenter/uploadimage", &controllers.UserCenterController{},"Post:UploadImage")

	beego.Router("/", &controllers.HomeController{}, "*:Index")
	beego.Router("/main", &controllers.HomeController{}, "*:Index")


}
